import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
        singer: {}
    },
    mutations: {
        setSinger(state, singer) {
            state.singer = singer
            sessionStorage.setItem("singer", JSON.stringify(singer))
        }
    },
    getters: {
        singer: state => state.singer
    },
    actions: {

    },
    modules: {

    }
})
export default store